const Koa = require('koa');
const router = require('koa-router')();
const mount = require('koa-mount');
const graphqlHTTP = require('koa-graphql');
const MyGraphQLSchema = require('./schema/default');
const app = new Koa();

app.use(mount('/graphql', graphqlHTTP({
  schema: MyGraphQLSchema, // 待定数据
  graphiql: true
})));

app.listen(3000, () => {
  console.log("服务器启动起来了: => localhost:3000");
})
